From: kfraser@localhost.localdomain Date: Tue, 17 Oct 2006 15:51:09 +0000 (+0100) Subject: [SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15589^2~83 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=2023a310ed01c3f45167128f9fcdf2ce5e43157a;p=xen.git [SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers. Signed-off-by: John Levon --- diff --git a/tools/Rules.mk b/tools/Rules.mk index bb6cdaf286..64be032241 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -25,9 +25,9 @@ CFLAGS += -D__XEN_TOOLS__ %.o: %.cc $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< -OS = $(shell uname -s) +.PHONY: mk-symlinks mk-symlinks-xen mk-symlinks-$(XEN_OS) -.PHONY: mk-symlinks mk-symlinks-xen mk-symlinks-$(OS) +mk-symlinks-SunOS: mk-symlinks-Linux: LINUX_ROOT=$(XEN_ROOT)/linux-2.6-xen-sparse mk-symlinks-Linux: @@ -44,4 +44,4 @@ mk-symlinks-xen: mkdir -p xen/io ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) -mk-symlinks: mk-symlinks-xen mk-symlinks-$(OS) +mk-symlinks: mk-symlinks-xen mk-symlinks-$(XEN_OS) diff --git a/tools/guest-headers/Makefile b/tools/guest-headers/Makefile index dc1456667f..1c50599a4c 100644 --- a/tools/guest-headers/Makefile +++ b/tools/guest-headers/Makefile @@ -1,5 +1,6 @@ - XEN_ROOT=../.. +include $(XEN_ROOT)/tools/Rules.mk + linuxsparsetree = $(XEN_ROOT)/linux-2.6-xen-sparse .PHONY: all @@ -8,10 +9,15 @@ all: .PHONY: check check: -.PHONY: install -install: +.PHONY: install install-Linux install-SunOS + +install-Linux: mkdir -p $(DESTDIR)/usr/include/xen/linux install -m0644 $(linuxsparsetree)/include/xen/public/*.h $(DESTDIR)/usr/include/xen/linux +install-SunOS: + +install: install-$(XEN_OS) + .PHONY: clean clean: diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile index 772a2a8cf8..ff5e45fe2c 100644 --- a/tools/xenstore/Makefile +++ b/tools/xenstore/Makefile @@ -29,7 +29,7 @@ XENSTORED_OBJS = xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored XENSTORED_Linux = xenstored_linux.o -XENSTORED_OBJS += $(XENSTORED_$(OS)) +XENSTORED_OBJS += $(XENSTORED_$(XEN_OS)) .PHONY: all all: libxenstore.so libxenstore.a xenstored $(CLIENTS) xs_tdb_dump xenstore-control xenstore-ls